/* BTrace Script Template */


import org.openjdk.btrace.core.annotations.BTrace;
import org.openjdk.btrace.core.annotations.OnMethod;

import static org.openjdk.btrace.core.BTraceUtils.jstack;
import static org.openjdk.btrace.core.BTraceUtils.println;

@BTrace
public class TracingByteBuffer {
    /* put your code here */
    @OnMethod(
            clazz = "java.nio.ByteBuffer",
            method = "allocateDirect"
    )
    public static void traceExecute() {
        println("who call allocateDirect");
        jstack();
    }
}